package com.tele.controller;

import cn.dev33.satoken.annotation.SaCheckLogin;
import com.tele.domain.Os;
import com.tele.service.ints.OsService;
import lombok.RequiredArgsConstructor;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@RestController
@SaCheckLogin
@RequiredArgsConstructor
public class OsController {
    final OsService osService;

    @GetMapping("getAllOs")
    List<Os> getAllOs(){
        return osService.getAllOs();
    }
}
